<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div class="modal-dialog ms-modal-dialog">
  <div class="modal-content">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">
        <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
      </button>
      <h4 class="modal-title">开启挑战审核</h4>
    </div>

    <div class="modal-body">

      <div class="form-group">
        <div id="videoPlayer" style="width: 100%; height: 300px;"></div>
      </div>
    </div>
    
    <form class="form-horizontal x-form" role="form" method="POST" action="${ctx.host}/userbets/${id}/auth" data-validate="true">

      <input type="hidden" name="_method" value="PATCH" /> <input type="hidden" name="passed" id="passeds" /> <input type="hidden" id="beforeVedio" value="${userBet.beforeVedio}" />

      <div class="modal-footer x-modal-footer">

        <button type="submit" onclick="ac()" class="btn x-btn btn-success">审核通过</button>
        <button type="submit" onclick="ab()" class="btn x-btn btn-danger">需重新上传</button>

      </div>
    </form>

  </div>
</div>
<script>
	function ac() {
		document.getElementById("passeds").value = true;
	}
	function ab() {
		document.getElementById("passeds").value = false;
	}
</script>